package cn.javass.dp.decorator.mydemo1;

public class ConcreateDecoratorB extends Decorator{

    public ConcreateDecoratorB(Component component) {
        super(component);
    }

    private String addedBehavior() {
        System.out.println("我是b");
        return null;
    }

    @Override
    public void operation() {
        addedBehavior();
        super.operation();
    }


}
